package com.loyal.mwm.ui

import com.base.kit.DevUtil
import com.loyal.mwm.R
import com.loyal.mwm.base.BaseSwipeActivity
import com.loyal.mwm.databinding.ActivityAboutBinding
import com.loyal.mwm.handler.AboutHandler
import com.loyal.mwm.util.ImageUtil

class AboutActivity : BaseSwipeActivity<ActivityAboutBinding>() {

    override fun actLayoutRes(): Int {
        return R.layout.activity_about
    }

    override fun afterOnCreate() {
        val toolbar = binding.toolbar.root
        toolbar.title = "关于我们"
        setSupportActionBar(toolbar)
        binding.version = DevUtil.apkVersion(this)
        binding.drawable = ImageUtil.getBackground(this)
        binding.click = AboutHandler(this)
    }

    override fun setEdgePosition(): Int {
        return LEFT
    }
}